//
//  TTChatMessage.swift
//  TTCoreData
//
//  Created by Toj on 3/30/21.
//

import Foundation

public enum TTChatRole: Int {
    case local
    case remote
}

public enum TTChatType: Int {
    case message
    case emoji
    case image
    case video
    case audio
}

open class TTChatMessage: Object {
    
    public var isTeacher = false
    public var role: TTChatRole = .local
    public var type: TTChatType = .message
    
    public var nickname: String = ""
    public var message:  TTMessage?
    public var emoticon: TTEmoticon?
}
